package com.york.tinyrpc.protoss.fault.tolerant;

import com.york.tinyrpc.protoss.model.TinyRpcResponse;

import java.util.Map;

/**
 * 服务降级机制，失败后通过返回Mock数据优雅降级
 * todo 暂时不知道怎么实现，应该就是调用MockService
 */
public class FallBackTolerantStrategy implements TolerantStrategy {

    @Override
    public TinyRpcResponse doTolerant(Map<String, Object> context, Exception e) {

        return null;
    }
}
